package com.xiaoli.computertest.control;

import static com.xiaoli.computertest.model.ActionType.INPUT_NUMBER;

import com.xiaoli.computertest.action.Action;
import com.xiaoli.computertest.model.ActionType;
import com.xiaoli.computertest.model.ActionValue;

public class MathControl {
	
	public MathControl(){
		action = new Action();
	}
	
	public void input(ActionType actionType,ActionValue actionValue) {
		
		
		if(actionType==INPUT_NUMBER){
			
		}else if(actionType == ActionType.INPUT_OPERATOR){
			char x = action.getLastString();
			if(x=='+'||x=='-'||x=='*'||x=='/'){
				
			}else{
				//action.
			}
		}else if(actionType == ActionType.INPUT_CLEAR){
			
		}
	}

	
	Action action;
}
